package com.xiyu.service.enums.mailbox.folder;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 邮件文件夹分类
*/
@Getter
@AllArgsConstructor
public enum MailboxFolderClassEnum implements IntArrayValuable {

    /**
    * 账号
    */
    ACCOUNT(1, "账号"),
    /**
    * 收件
    */
    RECEIVE(2, "收件"),
    /**
    * 草稿
    */
    DRAFT(3, "草稿"),
    /**
    * 发件
    */
    SEND(4, "发件"),
    /**
    * 已删除
    */
    DELETED(5, "已删除"),
    /**
    * 垃圾
    */
    JUNK(6, "垃圾"),
    /**
    * 标签
    */
    LABEL(7, "标签"),
    /**
    * 其它
    */
    OTHER(8, "其它");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MailboxFolderClassEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MailboxFolderClassEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
